#!/bin/bash
# 同步所有配置

echo 开始同步 Vimwiki 到 Github Pages..
echo Committing changes..
cd ~/vimwiki_html
git add *
git commit -a -m "Script commit on `date`" > /dev/null
git push gh master:gh-pages> /dev/null

echo 开始同步 .vimrc 文件到 OSChina
cd ~
git add .vimrc
git commit -a -m "Script commit on `date`" > /dev/null
git push origin master > /dev/null

echo 同步完成！
exit 0

